extern int PGL_Init(int bInitCOM);
extern int PGL_Quit(int bCloseCOM);

extern long PGL_Figure();
extern long PGL_Region();
extern long PGL_GetCR();
extern long PGL_GetCD();
extern int PGL_SetCR(long dwRegionID); 
extern void PGL_CloseFigure(long dwID);
extern void PGL_CloseAllFigures();
extern void PGL_ClearRegion(long dwID );

extern long PGL_Divide(long uRegionID, long nRows, long nCols);
extern long PGL_GetChild( long uRegionID, long uIndex );
extern long PGL_GetChildrenSize( long uRegionID );
extern long PGL_GetParent(long uID );

extern long PGL_Plot(long uRegionID, float* pX, float* pY, const char* szFlags);
extern long PGL_PlotY(long uRegionID, float fX0, float fXStep, float* pY, const char* szFlags);
extern long PGL_PlotLOD(long uRegionID, float* pX, float* pY, float fCompressionRatio, const char* szFlags);
extern long PGL_PlotLODY(long uRegionID, float fX0, float fXStep, float* pY, float fCompressionRatio, const char* szFlags);
extern long PGL_Histogram(long uRegionID, float* pY, const char* szFlags);
extern long PGL_ErrorBar(long uRegionID, float* pX, float* pY, float* pErrorUp, float* pErrorDown, const char* szFlags);
extern long PGL_ErrorBarY(long uRegionID, float fX0, float fXStep, float* pY, float* pErrorUp, float* pErrorDown, const char* szFlags);
extern long PGL_Scatter(long uRegionID, float* pX, float* pY, float* pValues, const char* szFlags);
extern long PGL_Stock(long uRegionID, float fX0, float fXStep, float* pOpen, float* pHigh, float* pLow, float* pClose, const char* szFlags);

extern long PGL_LeftLabel(long uRegionID, const char* szLabel);
extern long PGL_BottomLabel(long uRegionID, const char* szLabel);
extern long PGL_Title(long uRegionID, const char* szLabel);
extern long PGL_RightLabel(long uRegionID, const char* szLabel);

extern long PGL_Legend(long uRegionID, const char* szLegend);
extern void PGL_AutoScale(const char* szState );

extern long PGL_LoadFromXML(long uRegionID, const char* szFileName );
extern int PGL_SaveToXML(long uRegionID, const char* szFileName, int bZipping );
extern int PGL_RenderToFile(long uRegionID, const char* szFileName, const char* szFormat );